/**
  ******************************************************************************
  * @author     Chris
  * @since      2023/10/16 22:03
  *
  * @file       sd_i2c.h
  * @brief      Head file of Xxx Hardware Driver.
  *
  * @note       This file contains the hardware driver's function declaration 
  *             for the Xxx.
  *
  * @warning    None.
  ******************************************************************************
  * Change Logs:
  *   Date           Author       Notes
  *   2023/10/16     Chris        the first version
  *
  ******************************************************************************
  */

#ifndef JXTECH_PD_H_I2C_H
#define JXTECH_PD_H_I2C_H

#include "stm32g4xx.h"

void PD_H_I2C1_Init(void);

void PD_H_I2C_WriteBytes(I2C_TypeDef *I2Cx, uint8_t salveAddress, uint8_t regAddress, uint8_t *dat, uint8_t len);

void PD_H_I2C_ReadBytes(I2C_TypeDef *I2Cx, uint8_t salveAddress, uint8_t regAddress, uint8_t *dat, uint8_t len);

#endif // JXTECH_PD_H_I2C_H
